package com.fjut.wx.controller;


import com.fjut.result.Result;
import com.fjut.service.VodService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "腾讯云视频点播接口")
@RestController
@RequestMapping("/fjut/vod")
public class VodApiController {

    @Autowired
    private VodService vodService;

    @ApiOperation("点播视频播放接口")
    @GetMapping("getPlayAuth/{courseId}/{videoId}")
    public Result getPlayAuth(@PathVariable Long courseId, @PathVariable Long videoId){
        return Result.success(vodService.getPlayAuth(courseId,videoId));
    }
}
